package com.ease.concurrent.thread.local;

/**
 * @author: chenhs
 * @date: Created in 15:16 2020/3/15
 **/
public class ThreadLocalTest3 {
    private static ThreadLocal<String> threadLocal = ThreadLocal.withInitial(()->"初始值");

    public static void main(String[] args) {
        //无法移除初始值
        threadLocal.remove();
        System.out.println(threadLocal.get());
    }
}
